#! /bin/bash

# Author: Faisal Abu-Nimeh
# Mod Date: 20140306
# Description: (runs on DAQ workstation(s) via apple remote desktop) run daqServer and getEccClient on mm*. This files moves old graws to previousGraw directory. It kills previous instances of these processes.


echo "Checking status for all mm servers"

for i in `seq 0 9`;
do
	echo "mm$i server status"
	ssh mm$i.local "lsof -n -i -P | grep EccSer"
	ssh mm$i.local "lsof -n -i -P | grep dataRoute"
	echo " "
	echo " "
done  

echo "Done"
